import request from "@/utils/request";

export const getTopic = () => {
  return request({
    url: "/count/top",
    method: "get",
  });
};

export const applyAnalysis = (params) => {
  return request({
    url: "/count/line/order",
    method: "get",
    params,
  });
};
export const userAnalysis = (params) => {
  return request({
    url: "/count/line/user",
    method: "get",
    params,
  });
};

export const getSupplyType = () => {
  return request({
    url: "/count/pie/resourceSupply",
    method: "get",
  });
};

export const getSupplyDemandCount = () => {
  return request({
    url: "/count/pie/resourceSupplyAndDemand",
    method: "get",
  });
};
